package lab02.test22;

public class Test22 {
    public static void main(String[] args) {
        String name="dDFDSG242JHRFh#@$%^%";
        char[] arr=name.toCharArray();
        StringBuffer sb=new StringBuffer();
        for (int i=0;i<arr.length;i++){
           if (arr[i]>=0&&arr[i]<=9){
               arr[i]=0;
               sb.append(0).toString();
           }else if (arr[i]>='A'&&arr[i]<='Z'){
               sb.append(String.valueOf(arr[i]).toLowerCase());
           }else {
               arr[i]='#';
               sb.append(arr[i]).toString();
           }
        }
        System.out.println("转化后输出："+sb);
    }
}
